home *** CD-ROM | disk | FTP | other *** search
- _root.LevelInit();
- _root.astronauts = 0;
- i = 1;
- while(i < _root.max_astronauts)
- {
- _root.attachMovie("man","man_" + i,i + 10);
- i++;
- }
- _root.onEnterFrame = function()
- {
- if(!_root.paused)
- {
- if(_root.baiters_time < 0 && _root.player_on)
- {
- _root.AttachOnLevel(0);
- _root.baiters_time = 400;
- }
- else
- {
- _root.baiters_time -= 1;
- }
- if(_root.hyperspace)
- {
- _root.ship_speed = 0;
- _root.hyper_d = _root.ship_x - _root.hyper_x;
- _root.ship_0._x = 275;
- _root.ship_0._xscale = (- _root.hyper_d) * 5;
- _root.ship_0._alpha = 20000 / Math.abs(_root.hyper_d * 5);
- _root.ship_x -= _root.hyper_d / 6;
- if(Math.abs(_root.hyper_d) < 20)
- {
- _root.ship_0._xscale = _root.hyper_d >= 0 ? -100 : 100;
- _root.ship_0._alpha = 100;
- _root.ship_0.to_y = _root.ship_0._y;
- _root.hyperspace = false;
- if(!_root.player_on)
- {
- _root.EnemyAttach(0,false,275,210);
- }
- }
- }
- if(_root.globalBang > 0)
- {
- if(_root.globalBang < 100)
- {
- _root.bigBangColor = new Color(_root);
- _root.colTrans = {ra:100,rb:0,ga:100,gb:0,ba:100,bb:0,aa:100,ab:0};
- _root.colTrans.rb = _root.globalBang * 25;
- _root.bigBangColor.setTransform(_root.colTrans);
- _root._x = (Math.random() - 0.5) * _root.globalBang;
- _root._y = (Math.random() - 0.5) * _root.globalBang;
- _root.globalBang -= 1;
- if(_root.globalBang == 0)
- {
- _root._x = 0;
- _root._y = 0;
- _root.colTrans = {ra:100,rb:0,ga:100,gb:0,ba:100,bb:0,aa:100,ab:0};
- _root.bigBangColor.setTransform(_root.colTrans);
- }
- }
- else
- {
- _root._x = (Math.random() - 0.5) * (_root.globalBang - 100);
- _root._y = (Math.random() - 0.5) * (_root.globalBang - 100);
- _root.globalBang -= 1;
- if(_root.globalBang == 100)
- {
- _root._x = 0;
- _root._y = 0;
- _root.globalBang = 0;
- }
- }
- }
- if(_root.timer_enemy <= 0)
- {
- if(_root.player_on)
- {
- _root.AttachOnLevel(_root.level);
- }
- _root.timer_enemy = Math.random() * 30 + _root.en_appear_time;
- }
- else
- {
- _root.timer_enemy -= 1;
- }
- j = 0;
- while(j < 16)
- {
- dot = eval("_root.locator.man_" + j);
- dot._x = _root.ToRadarCoords(eval("_root.man_" + j).x);
- dot._y = eval("_root.man_" + j)._y / 10 + 7;
- dot = eval("_root.locator.ship_" + j);
- dot._x = _root.ToRadarCoords(eval("_root.ship_" + j).x);
- dot._y = eval("_root.ship_" + j)._y / 10 + 7;
- j++;
- }
- _root.mountain._x = - _root.ship_x;
- _root.radar_1._x = (- (_root.ship_x - 130)) / 10;
- _root.radar_2._x = (- (_root.ship_x - 4845)) / 10;
- }
- };
- stop();
-